
import 'package:flutter/material.dart';

class TakeOutBtn extends StatelessWidget {
  const TakeOutBtn({super.key});
  //自提或者外送按钮
  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.all(3),
      width: 90,
      height: 36,
      decoration: BoxDecoration(
         border: Border.all(width: 1,color: Color.fromRGBO(136, 175, 213, 1) ),
        borderRadius: BorderRadius.circular(18)
      ),child: Row(
      mainAxisAlignment: MainAxisAlignment.spaceBetween,
      children: [
        Container(
          width: 44,
          height: 30,
          alignment: Alignment.center,
          decoration: BoxDecoration(
            color: Color.fromRGBO(136, 175, 213, 1),
              borderRadius: BorderRadius.circular(15)),
          child: Text(
            '自提',
            style: TextStyle( color: Color.fromRGBO(255, 255, 255, 1), fontSize: 12),
          ),
          ),
        Container(
            height: 30,
            margin: EdgeInsets.only(right: 9),
            alignment: Alignment.center,
            decoration:
            BoxDecoration(borderRadius: BorderRadius.circular(15)),
            child: Text(
              '外送',
              style: TextStyle(
                  color: Color.fromRGBO(136, 175, 213, 1), fontSize: 12),
            ))
      ],
    ),
    );
  }
}
